import java.io.IOException;
import java.io.Serializable;
import java.net.Socket;
import java.rmi.server.RMIClientSocketFactory;

import javax.net.SocketFactory;
import javax.net.ssl.SSLSocketFactory;


public class MagazineClientSSLFactory implements RMIClientSocketFactory, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4691704846272487487L;

	@Override
	public Socket createSocket(String host, int port) throws IOException {
		SocketFactory factory=SSLSocketFactory.getDefault();
		return factory.createSocket(host, port);
	}

}
